package net.lzzy.demo3_5.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import javax.xml.stream.events.Comment;
import java.util.List;

public interface CommentRepository extends JpaRepository<Comment,Integer> {
    public List<Comment>findAllByAuthor(String author);

    public List<Comment>findAllByAuthorandArticleId(String author,Integer aId);

    public List<Comment> findByAuthorContains(String author);

    public List<Comment> findAllByOOrderByArticleId();


}
